package priv.ln.polymorphism;

/**
 * ClassName: Man
 * Package: priv.ln.polymorphism
 * Description:
 * ①重写上面的方法
 * ②增加  public void smoke()：打印抽烟
 * @Author 辣辣
 * @Create 2024/6/30 19:12
 * @Version 1.0
 */
public class Man extends Person {
    public void eat(){
        System.out.println("男人大口的吃饭");
    }

    public void toilet(){
        System.out.println("男人去男厕所");
    }

    public void smoke(){
        System.out.println("厕后一支烟");
    }
}
